import request from '@utils/request';
import { service } from '@utils/service'

export async function getFunctionArgList(params:any) {
  return request(`${service.SERVICE_ROOT}/funArg/list`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function getValidList() {
  return request(`${service.SERVICE_ROOT}/funArg/validList`)
}

export async function deleteFunctionArg(params:any) {
  return request(`${service.SERVICE_ROOT}/funArg/delete`,{
    method: 'DELETE',
    data: {
      ...params,
    },
  })
}

export async function addFunctionArg(params:any) {
  return request(`${service.SERVICE_ROOT}/funArg/add`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function detailFunctionArg(params:any) {
  return request(`${service.SERVICE_ROOT}/funArg/detail`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function updateFunctionArg(params:any) {
  return request(`${service.SERVICE_ROOT}/funArg/update`,{
    method: 'PUT',
    data: {
      ...params,
    },
  })
}
